package com.gxa.modules.app.outpatient.onlinepay.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.modules.app.outpatient.onlinepay.mapper.OutpatientRechargeRecordsAppMapper;
import com.gxa.modules.app.outpatient.onlinepay.service.OutpatientRechargeRecordsAppService;
import com.gxa.modules.model.entity.fee.OutpatientRechargeRecords;
import com.gxa.modules.pc.fee.mapper.OutpatientRechargeRecordsMapper;
import com.gxa.modules.pc.fee.service.OutpatientRechargeRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 门诊充值记录表 服务实现类
 * </p>
 *
 * @author gxa
 * @since 2022-11-12 05:31:54
 */
@Service
public class OutpatientRechargeRecordsAppServiceImpl extends ServiceImpl<OutpatientRechargeRecordsMapper, OutpatientRechargeRecords> implements OutpatientRechargeRecordsAppService {

    @Autowired
    private OutpatientRechargeRecordsAppMapper orram;

    @Override
    public void addRechargeRecords(String orderId, Integer id) {
        OutpatientRechargeRecords outpatientRechargeRecords = new OutpatientRechargeRecords();
        outpatientRechargeRecords.setOrderId(orderId)
                .setPatientId(id);
        orram.insert(outpatientRechargeRecords);
    }
}
